package Foundmentation;

public class Overload {
//    public static int add (int a, int b){
//        return a + b;
//    }
//    public static int add (int a, int b, int c){
//        return a + b + c;
//    }
    public static int max(int a,int b){
        return a > b ? a : b;
    }
    public static  double max(double a,double b, double c){
        a =  Math.max(a,b);
        c =  Math.max(a,c);
        return c;
    }

    public static void main(String[] args) {

        System.out.println(max(1.0,2.0,5.0));
    }
}
